package com.neuedu.springmvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author 金山
 * 项目：springmvc-learn
 * site: https://blog.fulfill.com.cn
 * 描述
 * @data 2025/3/1714:11
 */
@Controller
public class IndexController {


    /**
     * 使用@RequestMapping
     *
     * http://localhost:8080/web/index
     *
     *
     *
     * @return
     */
    @RequestMapping("/index")
    @ResponseBody
    String index(){
        return  "success-02";
    }


}
